/*
 * 
 * Libman
 * 
 * Daniel Kaufmann, Martin Lang, Simon Moosbrugger,
 * Stefan Mayer, Stephan Halbeisen
 * 
 */
package application.server;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.rmi.server.ServerNotActiveException;

import application.exceptions.ClientNotFoundException;
import application.exceptions.DatabaseException;
import application.exceptions.InsufficientClientRightsException;
import application.exceptions.MediumNotFoundException;
import application.exceptions.ReserveNotAllowedException;
import application.exceptions.SessionException;

/**
 * The Interface MediumReserveRemote.
 */
public interface MediumReserveRemote extends Remote {
	
	/**
	 * Reserve.
	 * 
	 * @param clientID
	 *            the client id
	 * @param mediumID
	 *            the medium id
	 * @throws RemoteException
	 *             the remote exception
	 * @throws DatabaseException
	 *             the database exception
	 * @throws MediumNotFoundException
	 *             the medium not found exception
	 * @throws ClientNotFoundException
	 *             the client not found exception
	 * @throws ReserveNotAllowedException
	 *             the reserve not allowed exception
	 */
	void reserve(String sessionId, int clientID, int mediumID) throws RemoteException,
			DatabaseException, MediumNotFoundException,
			ClientNotFoundException, ReserveNotAllowedException, SessionException, InsufficientClientRightsException, ServerNotActiveException;
}
